<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head />
    <body>
        <ui:composition>
            <h:form id="menuForm">
                <p:menu style="width: 90%; margin-top: 2px; margin-left: auto; margin-right: auto;">
                    <p:submenu label="Quản trị người dùng">
                        <p:menuitem value="Quản trị phòng ban" url="/admin/dept/list.jsf" ajax="false"
                                    rendered="#{securityBean.isUserHasMenu(Code.ADMIN_DEPT)}"/>
                        <p:menuitem value="Quản trị người dùng" url="/admin/user/list.jsf" ajax="false"
                                    rendered="#{securityBean.isUserHasMenu(Code.ADMIN_USER)}"/>
                        <p:menuitem value="Quản trị nhóm người dùng" url="/admin/group/list.jsf" ajax="false"
                                    rendered="#{securityBean.isUserHasMenu(Code.ADMIN_GROUP)}"/>
                        <p:menuitem value="Quản trị quyền" url="/admin/permission/list.jsf" ajax="false"
                                    rendered="#{securityBean.isUserHasMenu(Code.ADMIN_PERMISSION)}"/>
                        <p:menuitem value="Quản trị menu" url="/admin/menu/list.jsf" ajax="false"
                                    rendered="#{securityBean.isUserHasMenu(Code.ADMIN_MENU)}"/>
                    </p:submenu>
                </p:menu>
            </h:form>
        </ui:composition>
    </body>
</html>